/*
 * @Description: 
 * @Version: 1.0
 * @Autor: gaoluo
 * @Date: 2021-08-19 15:08:01
 * @LastEditors: gaoluo
 * @LastEditTime: 2021-12-02 16:30:09
 * @FilePath: /nhw/src/main.js
 */

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import 'lib-flexible';
import "@/style/global.less";
import { Toast } from 'vant';
// import BaiduMap from "BaiduMap";
import formateDate from "@/utils/formateDate.js"


Vue.config.productionTip = false;

// 配置Toast
Toast.setDefaultOptions('loading', { forbidClick: true, duration: 10000 });//背景不可点击 //默认10s

Vue.use(Toast);

// //全局注册地图
// Vue.prototype.$geolocation = new BaiduMap.Geolocation();

//全局注册时间格式过滤器
Vue.filter('formatDate', (value) => {

  if (value instanceof Date || typeof value === 'number') {
    return formateDate(value)
  } else {
    return value;
  }
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
